<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'basic';
/*******basic*******/
if($_RQ['op']=='basic'){
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('peixieyi'.$merchid,$postdata);
		exi('设置成功');
	}
	$return['item']=$this->plugin_setting('peixieyi'.$merchid);
	$htmls=array(
		'type'=>'edit',
		'desc'=>'配送管理规则',
		'edit'=>array(
				array('type'=>'string','title'=>'协议名称','name'=>'title'),
				array('type'=>'richtext','title'=>'配送管理规则','name'=>'content','help'=>''),
		),
	);
	$return['htmls']=$htmls;
	exi($return);
}
/*******basic*******/
/*******op*******/
